#include "widget.h"

#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    /*
    垂直刻度尺：将Qt::Horizontal改为Qt::Vertical即可
    */
    Widget w(Qt::Horizontal);
    w.show();
    return a.exec();
}
